package com.weipai.springboot.model;

import com.weipai.springboot.module.util.DateUtils;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.UUID;

/**
 * 技工表
 */
@Table(name = "c_artisan")
public class Artisan implements Serializable {

    @Id
    private String artisanId = UUID.randomUUID().toString();//主键

    private String artisanName;//姓名

    private String artisanSex;//性别

    private String artisanHeadImg;//头像

    private String artisanMobile;//手机号

    private String demandCategoryId;//需求类别id

    private Integer alternative=0;//接单量

    private Integer artisanStatus=0;//账号状态（默认为0，-1禁用）

    private Integer isAudit=0;//是否审核（默认为0:待审核  1:审核通过  -1:驳回

    private Integer artisanDel=0;//逻辑删除（默认为0，-1表示删除）

    private Integer artisanSort=0;//排序

    private String customerId;//用户的id

    private String applicantIdNumber;//身份证号

    private String idCardFront;//身份证正面

    private String idCardReverse;//身份证反面

    private String province;//省份

    private String city;//城市

    private String county;//区/县

    private String address;//详细地址

    private String createTime = DateUtils.timeFormat(System.currentTimeMillis());//创建时间

    private String delTime;//删除时间   

    private String updateTime;//修改时间

    private String theLongitude;//经度

    private String theLatitude;//纬度

    private String artisanDescribe;//简单介绍

    public String getArtisanDescribe() {
        return artisanDescribe;
    }

    public void setArtisanDescribe(String artisanDescribe) {
        this.artisanDescribe = artisanDescribe;
    }

    public String getTheLongitude() {
        return theLongitude;
    }

    public void setTheLongitude(String theLongitude) {
        this.theLongitude = theLongitude;
    }

    public String getTheLatitude() {
        return theLatitude;
    }

    public void setTheLatitude(String theLatitude) {
        this.theLatitude = theLatitude;
    }

    public String getArtisanId() {
        return artisanId;
    }

    public void setArtisanId(String artisanId) {
        this.artisanId = artisanId == null ? null : artisanId.trim();
    }

    public String getArtisanName() {
        return artisanName;
    }

    public void setArtisanName(String artisanName) {
        this.artisanName = artisanName == null ? null : artisanName.trim();
    }

    public String getArtisanSex() {
        return artisanSex;
    }

    public void setArtisanSex(String artisanSex) {
        this.artisanSex = artisanSex == null ? null : artisanSex.trim();
    }

    public String getArtisanHeadImg() {
        return artisanHeadImg;
    }

    public void setArtisanHeadImg(String artisanHeadImg) {
        this.artisanHeadImg = artisanHeadImg == null ? null : artisanHeadImg.trim();
    }

    public String getArtisanMobile() {
        return artisanMobile;
    }

    public void setArtisanMobile(String artisanMobile) {
        this.artisanMobile = artisanMobile == null ? null : artisanMobile.trim();
    }

    public String getDemandCategoryId() {
        return demandCategoryId;
    }

    public void setDemandCategoryId(String demandCategoryId) {
        this.demandCategoryId = demandCategoryId == null ? null : demandCategoryId.trim();
    }

    public Integer getAlternative() {
        return alternative;
    }

    public void setAlternative(Integer alternative) {
        this.alternative = alternative;
    }

    public Integer getArtisanStatus() {
        return artisanStatus;
    }

    public void setArtisanStatus(Integer artisanStatus) {
        this.artisanStatus = artisanStatus;
    }

    public Integer getIsAudit() {
        return isAudit;
    }

    public void setIsAudit(Integer isAudit) {
        this.isAudit = isAudit;
    }

    public Integer getArtisanDel() {
        return artisanDel;
    }

    public void setArtisanDel(Integer artisanDel) {
        this.artisanDel = artisanDel;
    }

    public Integer getArtisanSort() {
        return artisanSort;
    }

    public void setArtisanSort(Integer artisanSort) {
        this.artisanSort = artisanSort;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId == null ? null : customerId.trim();
    }

    public String getApplicantIdNumber() {
        return applicantIdNumber;
    }

    public void setApplicantIdNumber(String applicantIdNumber) {
        this.applicantIdNumber = applicantIdNumber == null ? null : applicantIdNumber.trim();
    }

    public String getIdCardFront() {
        return idCardFront;
    }

    public void setIdCardFront(String idCardFront) {
        this.idCardFront = idCardFront == null ? null : idCardFront.trim();
    }

    public String getIdCardReverse() {
        return idCardReverse;
    }

    public void setIdCardReverse(String idCardReverse) {
        this.idCardReverse = idCardReverse == null ? null : idCardReverse.trim();
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province == null ? null : province.trim();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county == null ? null : county.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    public String getDelTime() {
        return delTime;
    }

    public void setDelTime(String delTime) {
        this.delTime = delTime == null ? null : delTime.trim();
    }
}